<template>
    <div>
        <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="选择题" name="choice" :disabled="disabled">
                <question-choice @change="changeTab"></question-choice>
            </el-tab-pane>
            <el-tab-pane label="判断题" name="check" :disabled="disabled">
                <!--<question-check @change="changeTab" ></question-check>!-->
            </el-tab-pane>
        </el-tabs>
    </div>
</template>
<script>
import questionChoice from './questionChoice';
// import questionCheck from './questionCheck';
export default {
    name: 'addNewQuestionList',
    components: {questionChoice},
    data() {
        return {
            activeName: 'choice',
            disabled: false
        }
    },
    methods: {
        handleClick() {
            console.log(1111111);
        },
        changeTab(activeName) {
            this.disabled = true;
            console.log(activeName)
            this.activeName = activeName;
        }
    }

  
}
</script>
<style lang="scss" scoped>

</style>


